import request from '@/utils/request'

// 查询车辆管理列表
export function listBooking(query) {
  return request({
    url: '/gwBooking/list',
    method: 'get',
    params: query
  })
}

// 查询车辆管理详细
export function getBooking(bookingId) {
  return request({
    url: '/gwBooking/' + bookingId,
    method: 'get'
  })
}

// 新增车辆管理
export function addBooking(data) {
  return request({
    url: '/gwBooking',
    method: 'post',
    data: data
  })
}

// 修改车辆管理
export function updateBooking(data) {
  return request({
    url: '/gwBooking',
    method: 'put',
    data: data
  })
}

// 删除车辆管理
export function delBooking(bookingId) {
  return request({
    url: '/gwBooking/' + bookingId,
    method: 'delete'
  })
}

export function notice(bookingId) {
  return request({
    url: '/gwBooking/notices/' + bookingId,
    method: 'put'
  })
}
